package com.hgxd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hgxd.entity.pojo.SysUser;
import com.hgxd.entity.res.ResOptions;
import com.hgxd.entity.res.ResUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wtf
 * @create 2023-07-24 17:04
 * @description : 用户接口
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    List<ResUserVo> selectRoleById(Long userId);

    /**
     * 根据roleId查询对应角色信息（options）
     * @param roleId
     * @return
     */
    List<ResOptions> getUserOptionByRoleId(@Param("roleId") long roleId);
}
